package com.article.mapper;

import com.article.entity.dto.IdsDao;
import com.article.entity.pojo.ColumnList;
import com.article.entity.vo.ColumnListVo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface ColumnMapper extends BaseMapper<ColumnList> {
    List<ColumnListVo> getColumn(int pid, int page, int size);


    int insertColumn(ColumnList columnList);

    int getColumnNumber();

    List<ColumnListVo> searchColumnByName(String name, int pid, int page, int size);

    int getColumnNumber1(String name, int pid);

    int deleteByIds(IdsDao idsDao);
}
